﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZFine.Domain;

namespace Entity.ProjectEnt
{
    /// <summary>
    /// 车厢子
    /// </summary>
    public class CarriageBoxEntity : IEntity<CarriageEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
    {
        public string F_Id { get; set; }
        public string F_CreatorUserId { get; set; }
        public DateTime? F_CreatorTime { get; set; }
        /// <summary>
        ///逻辑删除标记
        /// </summary>
        public bool? F_DeleteMark { get; set; }
        /// <summary>
        /// 删除实体的用户
        /// </summary>
        public string F_DeleteUserId { get; set; }
        /// <summary>
        /// 删除实体时间
        /// </summary>
        public DateTime? F_DeleteTime { get; set; }
        public string F_LastModifyUserId { get; set; }
        public DateTime? F_LastModifyTime { get; set; }

        //车箱的编号
        public string CarriageBoxID { get; set; }

        //最初始到站时候的所属车号
        public string InitBelongCarriageId { get; set; }
        //最初始到站时间
        public DateTime? InitBelongTime { get; set; }
        /// <summary>
        /// 初始重量（每个箱子的重量==车的当前重量）
        /// </summary>
        public string InitWeight { get; set; }

        //改变后的所属车号
        public string ChangeBelongCarriageId { get; set; }

        /// <summary>
        /// 装箱修改时候的重量（每个箱子的重量==车的当前重量）
        /// </summary>
        public string ChangeWeight { get; set; }

        //改变后的所属车号时候的时间
        public DateTime? ChangeBelongTime { get; set; }

        /// <summary>
        /// 离开时间（排车时间）
        /// </summary>
        public DateTime? LeaveTime { get; set; }

        //品名
        public string ThingsName { get; set; }

        //封号
        public string FenHao { get; set; }

        //蓬布号
        public string Tarpaulin { get; set; }

        /// <summary>
        /// 箱主
        /// </summary>
        public string BoxType { get; set; }

        //备注（写'坏'的话 就是坏箱）
        public string Remark { get; set; }

        /// <summary>
        /// 所在股道的名称
        /// </summary>
        [NotMapped]
        public string PathWayName { get; set; }
    }
}
